package com.lichuang.dedao.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 历史记录
 * </p>
 *
 * @author hanghang
 * @since 2019-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "History对象", description = "历史记录")
public class History implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "历史记录id")
    @TableId(value = "history_id", type = IdType.AUTO)
    private Integer historyId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "浏览物id")
    private Integer objectId;

    @ApiModelProperty(value = "浏览物名字，可以是某个课程的名字，听书或电子书的书名")
    private String objectName;

    @ApiModelProperty(value = "浏览时间")
    private LocalDateTime readTime;


}
